<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=utf-8"%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .d1{
            display: inline-block;
        }
        .d2{
            display: inline-block;
        }
    </style>
</head>
<body>
    <form method="post" action="${pageContext.request.contextPath}/family_add">
        <div class="d1">
           <p>
               <span>家庭编号</span>
               <input type="text" name="faCode" required="required" />
               <span style="color: red">*</span>
           </p>
           <p>
               <span>户主姓名</span>
               <input type="text" name="faHouseHolder"  required="required"/>
               <span style="color: red">*</span>
           </p>
           <p>
               <span> 家庭人数</span>
               <input type="text" name="faNumber" />
           </p>
           <p>
               <span> 家庭类型</span>
               <select name="faTypeId" required>
                   <option value="1">五保户</option>
                   <option value="2">农村孤老抚户</option>
                   <option value="3">农村其优抚户</option>
                   <option value="4">享受普通低保一般户</option>
                   <option value="5">享受低保的重残户</option>
                   <option value="6">一般户</option>
                   <option value="7">其他户</option>
               </select>
           </p>

            <p>
                <span>户口所在地</span>
                <input type="text" name="faResidence" required="required"/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>登记时间</span>
                <input type="date" name="faRegistrationTime" required/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>数据年份</span>
                <input name="faYear" required />
                <span style="color: red">*</span>
            </p>
            <p>
                <span>家庭状态</span>
                <input type="text" name="faState" required/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>备注</span>
                <input type="text" name="periodUsed"/>
            </p>
        </div>
        <div>
            <button type="submit">增加</button>
        </div>
    </form>
</body>
</html>
